package com.dindang.ddm.mvp.model.entity;

/**
 * Created by cxw on & 2018/11/8
 */
public class Repairs {
    /**
     * 发布报修
     */
    public static class RepairsParam{
        public String billid;
        public String userid;
        public String region;//维修区域 客户区域0 公共区域1
        public String regiontype;//维修类型
        public String addressid;//维修地址id
        public String address;//维修地址
        public String contacts;//联系人
        public String contactsid;//联系人id
        public String contactsphone;//联系人电话
        public String content;//维修内容
        public String image1;//图片1
        public String image2;//图片2
        public String imagereplace;//替换图片

        public RepairsParam() {
            this.region = "0";
            this.regiontype = "";
            this.addressid = "";
            this.address = "";
        }

        public void setRepairsParam(String userid, String contacts, String contactsid, String contactsphone, String content, String image1, String image2) {
            this.billid = "";
            this.userid = userid;
            this.contacts = contacts;
            this.contactsid = contactsid;
            this.contactsphone = contactsphone;
            this.content = content;
            this.image1 = image1;
            this.image2 = image2;
            this.imagereplace = "";
        }

        /**
         * 设置维修区域
         * @param region
         */
        public void setRegion(String region){
            this.region = region;
        }

        /**
         * 重置维修类型
         */
        public void resetRegiontype(){
            this.regiontype = "";
        }

        /**
         * 重置地址
         */
        public void resetAddress(){
            this.addressid = "";
            this.address = "";
        }

    }

    public static class RepairType{
        public String regionid;
        public String regionname;
    }

    /**
     * 报修区域
     */
    public static class RepairTypeParam{
        public String region;

        public RepairTypeParam(String region) {
            this.region = region;
        }
    }

    public static class RepairList{
        public String billid;//系统单据Id
        public String billdate;//报修填写时间
        public String address;//需要维修的地址
        public String contacts;//需要维修的联系人
        public String content;//需要维修内容
        public String state;//单据当前状态；未派单；未接单；已接单；维修中；已完成；已回访
        public String region;//维修所属区域 :客户区域 ；公共区域
        public String regiontype;//维修所属区域的具体分类
    }

    public static class RepairListParam{
        public String userid;
        public String buildid;
        public int state;
        public int page;
        public int rowcount;



        public void setRepairListParam(String buildid, int state) {
            this.buildid = buildid;
            this.state = state;
        }
    }

    public static class RepairDetail{
        public String billid;
        public String region;
        public String regiontypeid;
        public String regiontype;
        public String buildname;
        public String addressid;
        public String address;
        public String contacts;
        public String contactsid;
        public String contactsphone;
        public String content;
        public String image1;
        public String image2;
        public String state;
        public String billdate;
    }

    public static class EventRepairParam{
        public String billid;

        public EventRepairParam(String billid) {
            this.billid = billid;
        }
    }

    /**
     * 派单用
     */
    public static class DispatchEventRepairParam{
        public String billid;
        public String dispatchuserid;
        public String dispatchusername;
        public String repairuserid;
        public String repairusername;

        public DispatchEventRepairParam(String billid, String dispatchuserid, String dispatchusername, String repairuserid, String repairusername) {
            this.billid = billid;
            this.dispatchuserid = dispatchuserid;
            this.dispatchusername = dispatchusername;
            this.repairuserid = repairuserid;
            this.repairusername = repairusername;
        }
    }

    /**
     * 接单用
     */
    public static class AcceptEventRepairParam{
        public String billid;
        public String userid;

        public AcceptEventRepairParam(String billid, String userid) {
            this.billid = billid;
            this.userid = userid;
        }
    }

    /**
     * 报事报修开始维修
     */
    public static class StartEventRepairParam{
        public String billid;
        public String userid;

        public StartEventRepairParam(String billid, String userid) {
            this.billid = billid;
            this.userid = userid;
        }
    }

    /**
     * 报事报修暂停（开始）
     */
    public static class SuspendEventRepairParam{
        public String billid;
        public String userid;
        public String function;

        public SuspendEventRepairParam(String billid, String userid, String function) {
            this.billid = billid;
            this.userid = userid;
            this.function = function;
        }
    }

    /**
     * 报事报修暂停（开始）
     */
    public static class CompleteEventRepairParam{
        public String billid;
        public String userid;

        public CompleteEventRepairParam(String billid, String userid) {
            this.billid = billid;
            this.userid = userid;
        }
    }
}
